﻿using System;
using Autodesk.Revit.DB;
using Autodesk.Revit.UI.Selection;

namespace YJKRevitSteps.CreateFootstep
{
	public class CurveFilter : ISelectionFilter
	{
		public bool AllowElement(Element elem)
		{
			return elem.Category != null && !(null == elem.Category.Id) && -2000051 == elem.Category.Id.IntegerValue;
		}

		public bool AllowReference(Reference reference, XYZ pos)
		{
			return false;
		}
	}
}
